package zmz.entity;

import java.util.List;

public class Teacher {
    private Integer tid;

    private String tname;

    private Integer tpwd;

     //一对多关系映射，一个老师多名学生
    private List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public Integer getTid() {
        return tid;
    }

    public void setTid(Integer tid) {
        this.tid = tid;
    }

    public String getTname() {
        return tname;
    }

    public void setTname(String tname) {
        this.tname = tname == null ? null : tname.trim();
    }

    public Integer getTpwd() {
        return tpwd;
    }

    public void setTpwd(Integer tpwd) {
        this.tpwd = tpwd;
    }
}